FROM openjdk:17-slim

MAINTAINER cyzy

VOLUME /home/cyzy

RUN mkdir -p /home/cyzy

WORKDIR /home/cyzy

COPY ./jar/jf240807-exam-gateway-1.0-SNAPSHOT.jar /home/cyzy/app.jar

ENTRYPOINT ["java","-jar","app.jar"] > /home/cyzy/app.log 2>&1

EXPOSE 9500